<h3>Gerenciar Professores</h3>

<p class="adicionar"><?php echo $html->link('Adicionar Professor', array('action' => 'add')); ?></p>

<table border="1" cellspacing="0" cellpadding="0">

	<tr>
		<th>CPF</th>
		<th>Nome Completo</th>
		<th>SIAPE</th>
		<th class="editar">Editar</th>
		<th class="excluir">Excluir</th>
	</tr>

	<?php foreach ($teachers as $t): ?>
	<tr>
		<td><?php echo $t['Teacher']['cpf']; ?></td>
		<td><?php echo $t['Teacher']['nome']; ?></td>
		<td><?php echo $t['Teacher']['siape']; ?></td>
		<td class="editar">
			<?php echo $html->link('Editar', '/teachers/edit/'.$t['Teacher']['cpf'] );?>
		</td>
		<td>
			<?php echo $html->link('Excluir',  "/teachers/delete/{$t['Teacher']['cpf']}", null, 'Deseja realmente excluir?' )?>
		</td>
	</tr>
	<?php endforeach; ?> 
</table>
